/**
 * anji-allways.com Inc.
 * Copyright (c) 2016-2017 All Rights Reserved.
 */
package cn.zhiwen.service;

import cn.zhiwen.entity.CustomerRequest;
import cn.zhiwen.service.impl.SyncAddUserServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <pre>
 * 调用auth系统，同步user数据
 * </pre>
 * @author wangzhenming
 * @version $Id: SyncAddUserService.java, v 0.1 2018年3月29日 上午9:44:33 clps Exp $
 */
@FeignClient(value = "springClient01", fallback = SyncAddUserServiceImpl.class)
public interface SyncAddUserService {
    @RequestMapping(value = "/user/insertUser", method = RequestMethod.POST)
    Boolean addUser(@RequestBody CustomerRequest customerRequest);
}
